package com.vf.admin.client.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.miaodong.entity.AppSms;
import org.springframework.stereotype.Repository;

/**
 * 短信
 */
@Repository
public class AppSmsDao extends BaseDao<AppSms> {
    public void save(AppSms entity) {
        if (entity.getId() != null && entity.getId() > 0) {
            this.update(entity);
        } else {
            entity.setId(this.add(entity));
        }
    }
}
